package com.hugedata.cdn.outerfacade.serviceadapter.soapagent.bean;

import java.io.Serializable;

/**
 * 项目名称：CDN 类名称：TaskInfo 类描述： 创建人：zhaoaihua 创建时间：2013-10-23 下午5:17:57 修改备注：
 * 
 * @version
 */
public class TaskInfo implements Serializable
{
    /**
     * serialVersionUID
     * 
     * @since Ver 1.1
     */
    private static final long serialVersionUID = 1L;

    // 任务id
    private int taskID;

    // 用户ID
    private String userID;

    // 任务名称
    private String taskName;

    // 测评类型 1:加速效果 2，选型
    private int taskType;

    private String urlName;

    // 源站URL
    private String taskUrl;

    // 格式CDN|WWW.SINA.COM;CDN|WWWCOM.BAIDU.COM
    private String cdnUrl;
    
    private String ip;

    private int taskPort;

    // 任务探测时间
    private int taskInterval;

    // 创建任务时间
    private String creatTime;

    // 启动时间
    private String startTime;

    // 任务结束时间
    private String endTime;

    // 取消时间
    private String cancelTime;

    // 任务状态（0：（取消）删除 1：正常 2：暂停）
    private int status;

    // 任务修改标示
    private int updateFalg;

    // cdn网站类型
    private int cdnId;

    /********** V3.2版本新增属性 by luxiumin\20140304 开始 *******/
    // 用户接入方式 0:PC 1:手机/PAD
    private String taskAccessType;

    // 节点类型 0:idc 1:lastmile 2:moble
    private String taskNodeType;

    // 测评周期 直接填数字 单位天
    private String taskCycle;

    /********** V3.2版本新增属性 by luxiumin\20140304 结束 *******/

    public String findToolId()
    {
        String toolId = "00";
        if (1 == taskType)
        {
            toolId = "16";
        }
        return toolId;
    }

    public String getTaskAccessType()
    {
        return taskAccessType;
    }

    public void setTaskAccessType(String taskAccessType)
    {
        this.taskAccessType = taskAccessType;
    }

    public String getTaskNodeType()
    {
        return taskNodeType;
    }

    public void setTaskNodeType(String taskNodeType)
    {
        this.taskNodeType = taskNodeType;
    }

    public String getTaskCycle()
    {
        return taskCycle;
    }

    public void setTaskCycle(String taskCycle)
    {
        this.taskCycle = taskCycle;
    }

    public int getTaskID()
    {
        return taskID;
    }

    public void setTaskID(int taskID)
    {
        this.taskID = taskID;
    }

    public String getUserID()
    {
        return userID;
    }

    public void setUserID(String userID)
    {
        this.userID = userID;
    }

    public String getTaskName()
    {
        return taskName;
    }

    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public void setTaskPort(int taskPort)
    {
        this.taskPort = taskPort;
    }

    public int getTaskType()
    {
        return taskType;
    }

    public void setTaskType(int taskType)
    {
        this.taskType = taskType;
    }

    public int getTaskInterval()
    {
        return taskInterval;
    }

    public void setTaskInterval(int taskInterval)
    {
        this.taskInterval = taskInterval;
    }

    public int getUpdateFalg()
    {
        return updateFalg;
    }

    public void setUpdateFalg(int updateFalg)
    {
        this.updateFalg = updateFalg;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public String getUrlName()
    {
        return urlName;
    }

    public void setUrlName(String urlName)
    {
        this.urlName = urlName;
    }

    public String getTaskUrl()
    {
        return taskUrl;
    }

    public void setTaskUrl(String taskUrl)
    {
        this.taskUrl = taskUrl;
    }

    public String getCdnUrl()
    {
        return cdnUrl;
    }

    public void setCdnUrl(String cdnUrl)
    {
        this.cdnUrl = cdnUrl;
    }

    /**
     * @return ip
     */
    public String getIp()
    {
        return ip;
    }

    /**
     * @param ip 要设置的 ip
     */
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getCreatTime()
    {
        return creatTime;
    }

    public void setCreatTime(String creatTime)
    {
        this.creatTime = creatTime;
    }

    public String getStartTime()
    {
        return startTime;
    }

    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getEndTime()
    {
        return endTime;
    }

    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getCancelTime()
    {
        return cancelTime;
    }

    public void setCancelTime(String cancelTime)
    {
        this.cancelTime = cancelTime;
    }

    public int getCdnId()
    {
        return cdnId;
    }

    public void setCdnId(int cdnId)
    {
        this.cdnId = cdnId;
    }

    public int getTaskPort()
    {
        return taskPort;
    }

}
